package com.boyon.system.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.boyon.common.request.RequestEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * ClassName: Config <br/>
 * Function: 系统参数配置实体. <br/>
 * date: 2018年3月13日 上午10:53:11 <br/>
 * 
 * @author sunshulin
 * @version
 * @since JDK 1.8
 */
@Entity
@Table(name = "sys_config", catalog = "boyon_system")
@Data
@EqualsAndHashCode(callSuper = false)
public class Config extends RequestEntity implements java.io.Serializable {

	/**
	 * serialVersionUID:
	 * 
	 * @since JDK 1.8
	 */
	private static final long serialVersionUID = -2725262963232666462L;
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "config_id", unique = true, nullable = false)
	private Long configId;
	@Column(name = "config_name", length = 32)
	private String configName;
	@Column(name = "config_type")
	private Integer configType;
	@Column(name = "config_length")
	private Integer configLength;
	@Column(name = "config_value", length = 128)
	private String configValue;
	@Column(name = "data_source", length = 128)
	private String dataSource;
	@Column(name = "config_key", length = 6)
	private String configKey;
	@Column(name = "config_group")
	private Integer configGroup;
	@Column(name = "update_limit")
	private Integer updateLimit;
	@Column(name = "counting")
	private Integer counting;
}